package com.rgs.gateway.authentication.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rgs.gateway.authentication.server.entity.po.ResourcePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;


@Mapper
@Repository
public interface ResourceServiceMapper extends BaseMapper<ResourcePO> {
    /**
     * 根据公钥获取资源信息
     * @param appKey 公钥
     * @return 资源
     */
    Set<ResourcePO> getResourceByAppKey(@Param("appKey") String appKey);
}
